<!--
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->
<div class="statistics-header col-md-12 hide">
    <div class="progress hide">
        <div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuemin="0" aria-valuemax="100" data-id="migrationProgressBar">
            <span data-id="migrationProgressBarValue"></span>
        </div>
    </div>
    <pre class="successStatus hide">Migration is <span class="color">successful</span>. To exit form migration mode, please remove <span class="color">atlas.migration.data.filename</span> property and restart Atlas.</pre>
    <div class="refresh-container statisticsRefresh" data-id="statisticsRefresh">
        <button type="button" class="btn fa fa-refresh pull-right btn-sm btn-action" title="Refresh Data"></button>
    </div>
</div>
<div class="statistics-timeline col-sm-12">
    <div class="form-group clearfix">
        <div class="col-sm-4 pull-right" style="padding:0px;">
            <select class="form-control statistics-time-list" data-id="metricsTimeList"></select>
        </div>
    </div>
</div>
<div class="panel-group server-stats-container statsContainer hide col-md-12" id="accordion">
    <div class="modalOverlay" style="position: absolute;width:100%;height: 100%;cursor: wait;z-index: 1;"></div>
    <div class="panel panel-default custom-panel expand_collapse_panel-icon" data-id="entity">
        <div class="panel-heading" data-toggle="collapse" href="#entityCountCollapse" aria-expanded="true">
            <h4 class="panel-title">
                <a>Entities <span class="count">(0)</span></a>
            </h4>
            <div class="btn-group pull-left">
                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
            </div>
        </div>
        <div id="entityCountCollapse" class="panel-collapse collapse in">
            <div class="panel-body">
                <table class="table table-hover stat-table entityTable" data-id="entity-card">
                    <tbody>
                        <tr class="empty text-center">
                            <td colspan="3"><span>No records found!</span></td>
                        </tr>
                    </tbody>
                </table>
                <div class="panel panel-default custom-panel expand_collapse_panel-icon entity-chart-panel" data-id="entity">
                   <!--  <div class="panel-heading" data-toggle="collapse" href="#entityChartCollapse" aria-expanded="true" data-id="entityChartCollapseHeading">
                        <h4 class="panel-title">
                            <a>Trending Chart</a>
                        </h4>
                        <div class="btn-group pull-left">
                            <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
                        </div>
                    </div> -->
                    <div id="entityChartCollapse" data-id="entityChartCollapse" class="panel-collapse collapse in">
                        <div class="panel-body">
                            <div class="chart-container">
                                <div class="chart-heading">
                                    <div class="chart-title">
                                        <span data-id="chartTitle"></span>
                                    </div>
                                    <div class="chart-buttons-container" data-id="chartTimeLineList">
                                    </div>
                                </div>
                                <div class="col-sm-12 bar-stacked-graph">
                                    <div id="compareGraph">
                                        <svg data-id="compareGraph" style="width:725px; height:300px;margin: 0 auto;"></svg>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="panel panel-default custom-panel expand_collapse_panel-icon" data-id="classification">
        <div class="panel-heading" data-toggle="collapse" href="#classificationCountCollapse" aria-expanded="true">
            <h4 class="panel-title">
                <a>Classifications <span class="count">(0)</span></a>
            </h4>
            <div class="btn-group pull-left">
                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
            </div>
        </div>
        <div id="classificationCountCollapse" class="panel-collapse collapse in">
            <div class="panel-body">
                <table class="table stat-table classificationTable">
                    <thead>
                        <tr>
                            <th class="">Name</th>
                            <th class="">Count <span class="count">(0)</span></th>
                        </tr>
                    </thead>
                    <tbody data-id="classification-card">
                        <tr class="empty text-center">
                            <td colspan="3"><span>No records found!</span></td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="panel panel-default custom-panel expand_collapse_panel-icon" data-id="stats">
        <div class="panel-heading" data-toggle="collapse" href="#serverDetailcollapse" aria-expanded="true">
            <h4 class="panel-title">
                <a>Server Statistics </a>
            </h4>
            <div class="btn-group pull-left">
                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
            </div>
        </div>
        <div id="serverDetailcollapse" class="panel-collapse collapse in">
            <div class="panel-body">
                <div class="col-sm-12">
                    <div class="card-container panel panel-primary">
                        <div class="panel-heading">Server Details</div>
                        <div class="panel-body">
                            <table class="table stat-table">
                                <tbody data-id="server-card">
                                    <tr class="empty text-center">
                                        <td colspan="2"><span>No records found!</span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12">
                    <div class="card-container panel panel-primary hide" data-id="notificationDetails">
                        <div class="panel-heading">Notification Details</div>
                        <div class="panel-body">
                            <table data-id="offset-card" class="table stat-table notification-table table-striped ">
                                <tbody>
                                    <tr class="empty text-center">
                                        <td colspan="2"><span>No records found!</span></td>
                                    </tr>
                                </tbody>
                            </table>
                            <hr>
                            </hr>
                            <table data-id="notification-card" class="table stat-table notification-table table-striped ">
                                <tbody>
                                    <tr class="empty text-center">
                                        <td colspan="2"><span>No records found!</span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="panel panel-default custom-panel expand_collapse_panel-icon" data-id="systemDetails">
        <div class="panel-heading" data-toggle="collapse" href="#systemDetailCollapse" aria-expanded="false">
            <h4 class="panel-title">
                <a>System Details</a>
            </h4>
            <div class="btn-group pull-left">
                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
            </div>
        </div>
        <div id="systemDetailCollapse" class="panel-collapse collapse">
            <div class="panel-body">
                <div class="col-sm-6">
                    <div class="card-container panel panel-primary">
                        <div class="panel-heading">OS</div>
                        <div class="panel-body">
                            <table class="table stat-table">
                                <tbody data-id="os-card">
                                    <tr class="empty text-center">
                                        <td colspan="2"><span>No records found!</span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="card-container panel panel-primary">
                        <div class="panel-heading">Runtime</div>
                        <div class="panel-body">
                            <table class="table stat-table">
                                <tbody data-id="runtime-card">
                                    <tr class="empty text-center">
                                        <td colspan="2"><span>No records found!</span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12">
                    <div class="card-container panel panel-primary">
                        <div class="panel-heading">Memory</div>
                        <div class="panel-body">
                            <table class="table stat-table memory-details">
                                <tbody data-id="memory-card">
                                    <tr class="empty text-center">
                                        <td colspan="2"><span>No records found!</span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="fontLoader-relative statsLoader show">
    <i class="fa fa-refresh fa-spin-custom"></i>
</div>